import limitDetail from './limitDetail'
import limitNew from './limitNew'
import simple from './28-simple'
import normal from './28-normal'
export default [
  {
    path: '',
    name: 'index',
    component: () =>
      import(/* webpackChunkName: "bank-index" */ '@/bank/views/business/index/Index.vue'),
    meta: { title: '首页', icon: 'fa fa-home' },
  },
  {
    path: 'limit',
    component: { render: h => h('router-view') },
    meta: { title: '限率业务', hidden: true },
    children: [
      {
        path: '',
        redirect: 'product',
      },
      {
        path: 'product',
        name: 'index_limit',
        component: () =>
          import(
            /* webpackChunkName: "bank-index" */ '@/bank/views/business/index/LimitProduct.vue'
          ),
        meta: { title: '产品列表' },
      },
      {
        path: 'list',
        component: () =>
          import(
            /* webpackChunkName: "bank-library" */ '@/bank/views/business/limit/history/Index.vue'
          ),
        meta: { title: '存量业务' },
        children: limitDetail,
      },
      {
        path: 'new',
        component: () =>
          import(
            /* webpackChunkName: "bank-library" */ '@/bank/views/business/limit/new/Index.vue'
          ),
        meta: { title: '增量业务' },
        children: limitNew,
      },
    ],
  },
  {
    path: '28',
    component: { render: h => h('router-view') },
    meta: { title: '二八业务', hidden: true },
    children: [
      {
        path: '',
        redirect: 'product',
      },
      {
        path: 'product',
        name: 'index_28_product',
        component: () =>
          import(
            /* webpackChunkName: "bank-index" */ '@/bank/views/business/index/NormalProduct.vue'
          ),
        meta: { title: '产品列表' },
      },
      {
        path: 'normal',
        component: () =>
          import(
            /* webpackChunkName: "bank-library" */ '@/bank/views/business/28/normal/Index.vue'
          ),
        meta: { title: '常规28业务' },
        children: normal,
      },
      {
        path: 'simple',
        component: () =>
          import(
            /* webpackChunkName: "bank-library" */ '@/bank/views/business/28/simple/Index.vue'
          ),
        meta: { title: '便捷28业务' },
        children: simple,
      },
      {
        path: 'mission_after',
        name: 'missionAfter',
        component: () =>
          import(
            /* webpackChunkName: "bank-bus-after" */ '@/credit/views/city/self/after/Index.vue'
          ),
        meta: { title: '贷后详情', hidden: true },
      },
    ],
  },
]
